package com.xc.ezplan.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.xc.ezplan.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author lixingchen
 * @date 2022/11/15
 * @description 后台岗位表
 */
@TableName(value ="admin_job")
@Data
@ApiModel(description = "岗位实体")
@EqualsAndHashCode(callSuper = true)
public class AdminJob extends BaseEntity {
    /**
     * 岗位ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "岗位ID")
    private Long id;

    /**
     * 岗位名称
     */
    @ApiModelProperty(value = "岗位名称")
    private String name;

    /**
     * 岗位状态
     */
    @ApiModelProperty(value = "岗位状态")
    private Boolean enabled;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer jobSort;

    /**
     * 岗位描述
     */
    @ApiModelProperty(value = "岗位描述")
    private String description;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}